package com.lepan.ovgms.manages.car;

import android.support.annotation.Nullable;

import com.lepan.ovgms.manages.BaseFragment;

/**
 * Created by  on 2016/4/29.
 */
public class CarFragment extends BaseFragment {

    private CarAdapter mCarAdapter;

    @Nullable
    @Override
    public void setMyAdapter() {
        mCarAdapter = new CarAdapter(getActivity());
        mCarAdapter.setOnRecyclerViewListener(this);
        mRecyclerView.setAdapter(mCarAdapter);
    }

    @Override
    public void setDatas() {
        datas.clear();
        for (int i = 0; i < 20; i++) {
            datas.add("条目  " + (datas.size() + 1));
        }
        mCarAdapter.setDatas(datas);

    }
}

